package com.cskaoyan.demo8.controller;

import com.cskaoyan.demo8.bean.Result;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloController {
    @RequestMapping("/hello")
    @ResponseBody
    public Object hello() {
        System.out.println("hello world");
        Result result=new Result();
        result.setCode(200);
        result.setMsg("ok");
        return result;
    }
}
